package iotest.practice02;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("Gray");
        String skill = "闪耀终焉之枪";

        byte[] data = skill.getBytes(StandardCharsets.UTF_8);
        fos.write(data);

        System.out.println("写完了");

        fos.close();

    }
}
